package com.east.spark.parttern.command;

/**
 * 口令 -- 经小二传递
 */
public class OrderCommand implements Command {

	private CookReceiver cook;

	public OrderCommand(CookReceiver cook) {
		this.cook = cook;
	}

	@Override
	public void execute() {
		cook.cooking();
	}

	@Override
	public void undo() {
		cook.unCooking();
	}

}
